package com.aramco.fion.vo.selection
{
	import com.aramco.fion.vo.selection.*;
	
	import mx.collections.ArrayCollection;
	

	public class SelectionVo
	{
		public var key: String;
		public var inputName: String;
		[Bindable]
		private var _value: SelectionDetailsVo;
		public var selectionType:String;
		
		[Bindable]
		public var Text:String = "";

		public function SelectionVo()
		{
		}
		
		public function get value():SelectionDetailsVo
		{
			return _value;
		}

		public function set value(value:SelectionDetailsVo):void
		{
			_value = value;
			
			this.Text = _value != null ? _value.toString():"";
		}

		public  function toString():String
		{
			return "Query Variable : " + key.toString() + "\n" +
				   "Description : " + inputName.toString() + "\n" +
				   "Selection : " + value.toString();
		}
	}
}